package com.lx.person.entity;

/**
 * @author 柳新宽
 * @create 2022-03-21  11:27
 * @describe
 */
public class Athlete extends Person{
    //所属的运动
    private String sport;
    //获奖记录
    private String medal;

    @Override
    public void showMe() {
        System.out.println("这是一名运动员,身份证号为："+getCardId()+";姓名为："+getName()+";性别为："+getGender()
                +";籍贯为："+getHomeTown()+";参与的运动为："+getSport()+";获奖记录："+getMedal());
    }


    public String getSport() {
        return sport;
    }

    public void setSport(String sport) {
        this.sport = sport;
    }

    public String getMedal() {
        return medal;
    }

    public void setMedal(String medal) {
        this.medal = medal;
    }
}
